%%% myconfig.tex --- 

%% Common configurations (mainly packages including)

%% Author: <lukehuang.ca@me.com>
%% Version: $Id: common.tex,v 0.0 2013/03/26 14:26:20 luke Exp$

\usepackage[slantfont,boldfont]{xeCJK}
\usepackage{titlesec}
%\usepackage{xCJKnumb}
\usepackage{graphicx}
\usepackage{latexsym} % some maths symbols
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage[%
pdfstartview=FitH,%
bookmarksnumbered=true,%
bookmarksopen=true,%
dvipdfmx-outline-open=true]{hyperref}
\usepackage{listings}
\usepackage{color}

% \usepackage[xetex,dvipdfm,colorlinks]{hyperref}

% \usepackage[CJKbookmarks=true,dvipdfm,
%                 hyperindex=true,
%                 pdfstartview=FitH,
%                 bookmarksnumbered=true,
%                 bookmarksopen=true,
%                 colorlinks=true, %注释掉此项则交叉引用为彩色边框(将colorlinks和pdfborder同时注释掉)
%                 pdfborder=001,   %注释掉此项则交叉引用为彩色边框
%                 citecolor=blue]{hyperref}

% For Chinese
\setCJKmainfont{Microsoft YaHei}
\setCJKmonofont{Microsoft YaHei}
%\setCJKfamilyfont{kai}{KaiTi}

%%% \titleformat{\chapter}
%%%         {\Large\bfseries}{第\xCJKnumber{\thechapter}章}{1.2em}{}
%%% \titleformat*{\section}
%%%     {\large\bfseries}
%%% \titleformat*{\subsection}
%%%         {\bfseries}
\renewcommand{\tablename}{表}
\renewcommand{\figurename}{图}
\newtheorem{Theorem}{定理}[section]
\newtheorem{Definition}[Theorem]{定义}
\newtheorem{Lemma}[Theorem]{引理}

% Personal taste
\linespread{1.3} % 1.5 linespread
\setlength{\parindent}{0pt}
\addtolength{\parskip}{1.3ex}
\addtolength{\textheight}{40pt}
\addtolength{\voffset}{-20pt}
\addtolength{\textwidth}{55pt}

\renewcommand{\algorithmiccomment}[1]{$\rhd #1$}

% Misc
\graphicspath{{./fig/}}

\usepackage{enumitem}

%%% \usepackage[slantfont,boldfont]{xeCJK}
%%% 
%%% \usepackage{enumitem}
%%% 
%%% \usepackage{graphicx}
%%% \graphicspath{{../fig/}}
%%% 
%%% \usepackage[pdfstartview=FitH,%
%%%             bookmarksnumbered=true,%
%%%             bookmarksopen=true,%
%%%             dvipdfmx-outline-open=true]{hyperref}
